/**
 * @author harry
 * @date 2021/12/6/11:34
 */

package com.ui.builder;

import javax.swing.*;

public class ComboboxBuilder {
    public static JComboBox<Object> makeCombobox(Object...items) {
        JComboBox<Object> comboBox = new JComboBox<>();
        comboBox.setFont(FontBuilder.makeInputFont());
        for (Object item : items) {
            comboBox.addItem(item);
        }
        return comboBox;
    }
}
